Release 10.1A: OpenEdge Development:
Progress 4GL Reference
PUT-LONG statement
Stores the signed 32-bit value of an INTEGER expression at the specified memory location.
Syntax
destinationA variable of type RAW or MEMPTR. If
destinationis the Unknown value (?), it remains the Unknown value (?). Ifdestinationis a MEMPTR and its region in not allocated (by a SET-SIZE statement or by a Windows dynamic link library (DLL) or UNIX shared library routine), Progress generates a run-time error.positionAn INTEGER value greater than 0 that indicates the byte position where Progress stores
expression. Ifpositionis less than 1, Progress generates a run-time error.For a RAW
destination, ifpositionis greater than the length ofdestination, Progress increases the length ofdestinationtopositionplus the remaining bytes needed to storeexpression. The gap between the originaldestinationlength andpositionis padded with null bytes.For a MEMPTR
destination, ifpositionis greater than the length ofdestinationor does not leave sufficient room to storeexpression, Progress generates a run-time error.expressionThe INTEGER value of a constant, field, variable, function, or expression.
ExampleFor examples of how to use the PUT-LONG statement, see the PUT-BYTE statement reference entry.
Notes
- This statement supports byte-swapping only if
destinationis a MEMPTR data type. The statement will first examine the byte-order setting of the MEMPTR and then swap the bytes appropriately while putting the data into the MEMPTR memory.- For more information on accessing DLL routines from Progress, see OpenEdge Development: Programming Interfaces .
See also
GET-LONG function, LENGTH function, LENGTH statement, RAW function, RAW statement, SET-SIZE statement
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |